import 'package:fish_redux/fish_redux.dart';

import 'entity/attendanceRecordEntity.dart';

//TODO replace with your own action
enum attendanceRecordAction { action,
  onRefresh,
  onload,
  onSuccess,
  onComplete,

}

class attendanceRecordActionCreator {
  static Action onAction() {
    return const Action(attendanceRecordAction.action);
  }

  static Action onRefresh() {
    return const Action(attendanceRecordAction.onRefresh);
  }
  static Action onload() {
    return const Action(attendanceRecordAction.onload);
  }
  static Action onSuccess(List<attendanceRecordEntity> listsss) {
    return  Action(attendanceRecordAction.onSuccess,payload: listsss);
  }
  static Action onComplete() {
    return const Action(attendanceRecordAction.onComplete);
  }
}
